<?php
ob_start();
require_once('zAPI/properties.inc.php');
require_once( ROOT_CLASS . 'Kernel.class.php');
require_once( ROOT_CLASS . 'zAccess/zAccess.class.php' );
?>

<?php
$AccessAction = new AccessAction();
$AccessAction->validSessionUsuario();
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Sistema para Gestão de Entidades Sem Fins Lucrativos</title>
	<link rel="stylesheet" type="text/css" href="lib/ext/override.css" />
</head>

<body>


<div id="Ploading-mask"></div>
<div id="Ploading">
	<div class="Ploading-indicator">
		<center>
		<img src="img/loading.gif" style="vertical-align:top;"/>
		<br />
		Sistema para Gestão de Entidades Sem fins Lucrativos<br />
		<br />
		<span id="Ploading-msg">
			Carregando...
		</span>
		</center>
	</div>
</div>
		

<script type="text/javascript">document.getElementById('Ploading-msg').innerHTML = 'Carregando estilos css...';</script>

<link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="css/estilo.css" />
<link href="css/gridsearch.css" rel="stylesheet" type="text/css">
<link href="lib/ext/ux/css/LockingGridView.css" rel="stylesheet" type="text/css">
<link href="lib/ext/ux/gridfilters/css/GridFilters.css" rel="stylesheet" type="text/css">
<link href="lib/ext/ux/gridfilters/css/RangeMenu.css" rel="stylesheet" type="text/css">
<link href="lib/ext/ux/messageBox/Ext.ux.MessageBox.flash.css" rel="stylesheet" type="text/css">
<link href="lib/ext/ux/css/Ext.ux.form.LovCombo.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="lib/ext/ux/css/ColumnNodeUI.css" />
<link rel="stylesheet" type="text/css" href="lib/ext/ux/fileuploadfield/css/fileuploadfield.css"/>
<link rel="stylesheet" type="text/css" href="lib/ext/ux/css/data-view.css" />
<link rel="stylesheet" type="text/css" href="lib/ext/ux/css/RowEditor.css" />


<script type="text/javascript">document.getElementById('Ploading-msg').innerHTML = 'Estabelecendo sessão do usuário...';</script>


<script>
	<?php 
		if($AccessAction->isUserSession()){
			$usuarioSessao = $AccessAction->capturarSessaoUsuario();
	?>

			var userName = "<?php echo $usuarioSessao->get("nome");?>";
			
	<?php		
		}
	?>

	
</script>


<script type="text/javascript">document.getElementById('Ploading-msg').innerHTML = 'Carregando bibliotecas do ExtJS...';</script>


<script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="lib/ext/ext-all.js"></script>
<script type="text/javascript" src="lib/ext/ux/RowEditor.js"></script> 
<script type="text/javascript" src="lib/ext/ux/ColumnNodeUI.js"></script>
<script src="lib/ext/ux/Ext.ux.TextMask.js" type="text/javascript"></script>
<script type="text/javascript" src="lib/ext/ux/fileuploadfield/FileUploadField.js"></script>
<script type="text/javascript" src="lib/ext/ux/DataView-more.js"></script>
<script src="lib/ext/src/locale/ext-lang-pt_BR.js" type="text/javascript"></script>
<script src="lib/ext/ux/Ext.ux.form.LovCombo.js" type="text/javascript"></script>
<script src="lib/ext/ux/messageBox/Ext.ux.MessageBox.flash.js" type="text/javascript"></script>
<script src="lib/ext/ux/Ext.ux.Loader.js" type="text/javascript"></script>
<script src="lib/ext/ux/Ext.ux.TextMask.js" type="text/javascript"></script>
<script src="lib/ext/ux/Ext.ux.tree.RemoteTreePanel.js" type="text/javascript"></script>
<script src="lib/ext/ux/Ext.ux.tree.TreeFilterX.js" type="text/javascript"></script>
<script src="lib/ext/ux/GroupSummary.js" type="text/javascript"></script>
<script src="lib/ext/ux/GridFilters.js" type="text/javascript"></script>
<script src="lib/ext/plugins/searchfield.js"></script>
<script src="lib/OnDemandLoad.js" type="text/javascript"></script>

<script type="text/javascript">document.getElementById('Ploading-msg').innerHTML = 'Carregando estrutura do sistema...';</script>

<script src="js/config.js" type="text/javascript"></script>
<script src="js/app/app.menu.js" type="text/javascript"></script>
<script src="js/app/app.principal.js" type="text/javascript"></script>



<script>
Ext.onReady(function() {
	setTimeout(function() {
		Ext.get("Ploading").remove();
		Ext.get("Ploading-mask").fadeOut( {
			easing : "easeOut",
			duration : 0.7,
			remove : true
		})
	}, 250)
});
</script>




<div id="west" class="x-hide-display">

</div>
<div id="center2" class="x-hide-display">
	<a id="hideit" href="#"></a>
</div>
<div id="center1" class="x-hide-display"></div>
<div id="props-panel" class="x-hide-display" style="width:200px;height:200px;overflow:hidden;">
</div>

<div id="southX" class="x-hide-display">
	
</div>  


</body>
</html>
